Guild icon
Project Sekai
🔒 CrewCTF 2023 / ✅-crypto-pi_is_314
Avatar
pi_is_3.14 - 1000 points
Category: Crypto Description: Area of a quarter circle of radius 1 is pi/4 Let's estimate pi by Monte Carlo simulation! Author : y011d4 nc pi-is-3-14.chal.crewc.tf 20003 Files:Tags: No tags.
Sutx pinned a message to this channel. 07/07/2023 10:02 PM
Avatar
@Utaha wants to collaborate 🤝
Avatar
use low bit to gen the floating number
22:42
the state update logic looks like LFSR
22:42
basically each bit is a linear combinatino of the original key
22:46
the way to do this is probably: if the outcome is outside of the circle, then with 90% prob x > 0.5, which means the low bit of n32 is 1
22:47
we have roughly 10000 * (1-pi/4) = 2146 equations
22:47
it should be more than enough since we have only 64 variables (edited)
22:50
gonna go to sleep so feel free to just take it
Avatar
@kanon wants to collaborate 🤝
Avatar
@Violin wants to collaborate 🤝
Avatar
@layka_ wants to collaborate 🤝
Avatar
I'm back
06:44
maybe it might be better to say (x&1, y&1) != (0, 0) for points outside of the circle
06:44
so we can get rid of any probability issues and randomization
Avatar
Avatar
Utaha
used /ctf solve
✅ Challenge solved.
Exported 17 message(s)